<?php

namespace App\Exceptions;

use Exception;

class BusinessException extends Exception
{
    protected $code;
    protected $message;
    public function __construct(array $codeResponse, $info = '')
    {
        list($this->code, $this->message) = $codeResponse;
        parent::__construct($info ?: $this->message, $this->code);
    }
}
